<?
class ze_page{
	var $db;
	var $smarty;
	var $system_msg = array(
    4001 => "'%s' 是无效的时间单位",
    4002 => "记录数太多,请使用分页",
    5001 => "第一页",
    5002 => "前一页",
    5003 => "后一页",
    5004 => "最后页",
    5005 => "第 %d 页",
    5006 => "到第 %s 页",
    5007 => "共 %d 页",
    5008 => "%d 条",
    5009 => "本页从第 %d 条",
    5010 => "到第 %d 条",
    5011 => "每页显示 %d 条",
);
	function ze_page(){
		global $db,$smarty,$in,$category_db,$news_db;
		$this->in=$in;
		$this->db=$db;
		$this->smarty=$smarty;
		$this->category_db=$category_db;
		$this->news_db = $news_db;
	}
	
	function getSysMsg($num,$otherMsg='')
    {
            $msg = sprintf($this->system_msg[$num],$otherMsg) ;
            return $msg;
    }
}
?>